package com.project.service;

import com.project.entity.Department;

import java.util.List;

/**
 * Created by WheelChen on 2017/5/2.
 */
public interface DepartmentService {
    /**
     * author: WheelChen
     * date: 2015-5-4
     * function: 增加系/部/科室
     * @param department
     * @return
     */
    int addOne(Department department);
    /**
     * author: WheelChen
     * date: 2015-5-4
     * function: 根据id删除系/部/科室
     * @param id
     * @return
     */
    int remove(Integer id);
    /**
     * author: WheelChen
     * date: 2015-5-4
     * function: 根据id修改系/部/科室
     * @param department
     * @return
     */
    int modify(Department department);
    /**
     * author: WheelChen
     * date: 2015-5-4
     * function: 根据id查找系/部/科室
     * @param id
     * @return
     */
    Department findOne(Integer id);

    /**
     * author: WheelChen
     * date: 2015-5-4
     * function: 根据schoolId 查找系/部/科室
     * @param schoolId
     * @return
     */
    List<Department> findBatchBySchoolId(Integer schoolId);

    /**
     * author: WheelChen
     * date: 2017/8/3
     * function: 根据学院id查找学院下的系-专业-班级
     * 
     * @param schoolId
     * @return
     */
    List<Department> findDetailBatch(Integer schoolId);

    /**
     * author: WheelChen
     * date: 2017/8/10
     * function: 检查系是否已存在
     *
     * @param department
     * @return true - 存在 false - 不存在
     */
    boolean checkMajorIsExist(Department department);

    /**
     * author: WheelChen
     * date: 2017/10/9
     * function: 根据条件分页模糊查找系
     *
     * @param department
     * @return
     */
    List<Department> findBatchByCondition(Department department);
}
